Skip to content

ctutils: add size integers implementations #1416

Merged
tarcieri merged 2 commits into
RustCrypto:masterfrom
NicsTr:ctutils/size_int_ctgt
Jan 21, 2026
Merged

ctutils: add size integers implementations #1416
tarcieri merged 2 commits into
RustCrypto:masterfrom
NicsTr:ctutils/size_int_ctgt

Conversation

@NicsTr

@NicsTr NicsTr commented Jan 20, 2026

Copy link
Copy Markdown
Contributor
  • Add CtGt and CtLt for usize
  • Add CtAssign and CtSelect for NonZero{U,I}size
  • Add CtNeg for NonZero{U,I}size and {u,i}size
  • Add some tests

Implements `Cmov` and `CmovEq` for `NonZeroUsize`
and `NonZeroIsize`.

Implements slice for size integer types (and their
`NonZero*` variants.
- Add `CtGt` and `CtLt` for usize
- Add `CtAssign` and `CtSelect` for `NonZero{U,I}size`
- Add `CtNeg` for `NonZero{U,I}size` and `{u,i}size`
- Add some tests
@tarcieri

tarcieri commented Jan 21, 2026

Copy link
Copy Markdown
Member

@NicsTr looks like this could use a rebase now that #1415 is merged? I see a duplicated commit from that PR

@tarcieri tarcieri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, squash-and-merge should take care of it, I think

@tarcieri tarcieri merged commit 7f459a5 into RustCrypto:master Jan 21, 2026
32 checks passed
@tarcieri tarcieri mentioned this pull request Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants